using Estsh.Core.Base;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations.Schema;

namespace Estsh.Core.Model.Extend.Models
{
    /// <summary>
    /// ，数据实体对象
    /// </summary>
    [Table("mes_rework_repair_detail")]
    [Serializable]
    public class MesReworkRepairDetail : BaseEntity
    {
        /// <summary>
        /// 主表id
        /// </summary>
        [Column("rework_id")]
        [DisplayName(" ")]
        public int? ReworkId { get; set; }
        /// <summary>
        /// 原材料id
        /// </summary>
        [Column("part_id")]
        [DisplayName(" ")]
        public int? PartId { get; set; }
        /// <summary>
        /// 原材料名称
        /// </summary>
        [Column("part_name")]
        [DisplayName(" ")]
        public string PartName { get; set; }
        /// <summary>
        /// 成品条码
        /// </summary>
        [Column("carton_no")]
        [DisplayName(" ")]
        public string CartonNo { get; set; }
        /// <summary>
        /// 原材料的父级id
        /// </summary>
        [Column("parent_part_id")]
        [DisplayName(" ")]
        public int? ParentPartId { get; set; }
        /// <summary>
        /// 原材料的父级名称
        /// </summary>
        [Column("parent_part_name")]
        [DisplayName(" ")]
        public string ParentPartName { get; set; }
        /// <summary>
        /// 数量
        /// </summary>
        [Column("qty")]
        [DisplayName(" ")]
        public decimal? Qty { get; set; }
        /// <summary>
        /// 报废数
        /// </summary>
        [Column("rework_qty")]
        [DisplayName(" ")]
        public decimal? ReworkQty { get; set; }
        /// <summary>
        /// 回冲数
        /// </summary>
        [Column("backwash_qty")]
        [DisplayName(" ")]
        public decimal? BackwashQty { get; set; }
        /// <summary>
        /// 回冲的条码 RE开头
        /// </summary>
        [Column("backwash_carton_no")]
        [DisplayName(" ")]
        public string BackwashCartonNo { get; set; }
        /// <summary>
        /// 批次
        /// </summary>
        [Column("lot_no")]
        [DisplayName(" ")]
        public string LotNo { get; set; }


    }
}
